/**
 * Created by Administrator on 2018/3/23.
 */
function emit(name,targe){
    var temp = new Event(name);
    targe || (targe=window);
    targe.dispatchEvent(temp);
}

function on(name,cb,target){
    target || (target=window);
    target.addEventListener(name,cb);
}